home *** CD-ROM | disk | FTP | other *** search
- Path: softsite.co.at!wsog
- Date: 26 Feb 1996 17:27:00 +0100
- From: wsog@softsite.co.at (Walter Sommergruber)
- Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.win32
- Message-ID: <63aP9bS6nTB@softsite.co.at>
- References: <312DCB27.1A65@mtm.syr.ge.com> <31317AD4.6C9D@axonet.com.au>
- Subject: Re: .cc files in MS VC++
- X-Newsreader: XP v3.02
- X-Charset: ISO-8859-1
- Organization: Sommergruber Software & Dienstleistungen
- Followup-To: comp.os.ms-windows.programmer.win32
-
- Andrew Dalgleish (andrewd@axonet.com.au) wrote on 26.02.96
- about "Re: .cc files in MS VC++":
-
- > Steve Howard wrote:
- > > I am trying to include some files generated by a tool into a
- > > Visual C++ 4.0 project. The tool generates C++ files with the
- > > .cc extension, which VC++ doesn't recognize as a C++ file. I
- > > know I could set up custom builds, but they seem to work only on
- > > a file by file basis.... is there any other way to make VC++
- > > recognize .cc as C++ files?
- >
- > I know this is an ugly hack but...
- > for each foo.cc, create a foo.cpp which contains
- > #include "foo.cc"
-
- Oh man, that's really ugly !!!
- The compiler (cl) has two switches for this:
- /Tcfoo.xyz treat the file as C
- /Tpfoo.cc treat the file as C++
-
- BTW: you included comp.lang.c++ in your cross-post - I remove this...
-
- --- Take a look at ...
- Walter Sommergruber The Software Site
- email: wsog@softsite.co.at http://www.softsite.co.at/softsite/
-